package main

import "fmt"

/*
	https://gobyexample.com/channel-buffering
*/

func main() {
	messages := make(chan string, 3)

	messages <- "buffered"
	messages <- "channel"
	messages <- "ok"

	fmt.Println(<-messages)
	fmt.Println(<-messages)
	fmt.Println(<-messages)
}
